package org.diy.redisson.enums;

import lombok.AllArgsConstructor;
import org.diy.redisson.entity.Result;

/**
 * 默认返回值
 * @author tmz
 * @date 2021/7/19
 */
@AllArgsConstructor
public enum ResultEnum {
    SUCCESS(Result.SUCCESS),FAIL(Result.FRONTEND_ERR);
    Result result;

    public Result getResult() {
        return result;
    }
}
